<!DOCTYPE html>

<html>

  <head>

    <title>物流发货</title>

	<include file='public/head'>

	<style>

		.layui-legend-size{font-size:14px !important;}

		.layui-nopadding{padding:0 !important;}

		.layui-overflow{overflow:auto;}

		.layui-nomargin{margin: 0 !important;}

		.layui-bottom{border-bottom:1px solid rgb(226, 226, 226);}

		.layui-input{height:30px !important; }

		.layui-form-search-item .layui-inline{margin-bottom: 5px;} 

		.layui-form-search-item label{margin-left: 15px;}

		.layui-table-page {padding: 7px 0px 0px;}

		.layui-field-padding{border-width: 1px;padding:0 0 5px 10px;}

	</style>

</head>

<body>



<div class="layui-tab">

<form class="layui-form" id="f" method="post" >
  <!-- <label class="layui-form-label" style="font-size:20px">基本信息</label> -->
  <table class="layui-table layui-nomargin" style="text-align: center;margin-top:20px">

    <tr>

      <td>订单编号</td>

      <td>收货人</td>     

      <td>手机号码</td>

      <td>省|自治区|直辖市</td>

      <td>市|自治州|地区|县</td>

      <td>区|县|镇|乡|街道</td>

      <td style="width:400px;">详细地址</td>



    </tr>

    <tr> 

      <td>{$data.order_num}<input type="hidden" name="order_num" value="{$data.order_num}"></td>

      <td><eq name="$data.status" value="1"><input type="text" name="name"  class="layui-input" required="" value="{$data.name}"><else>{$data.name}</eq></td>

      <td><eq name="$data.status" value="1">
        <input type="text" name="mobile"  class="layui-input" required="" value="{$data.mobile}"><else>{$data.mobile}</eq>      
      </td>

      <td><eq name="$data.status" value="1">
        <input type="text" name="province"  class="layui-input" required="" value="{$data.province}"><else>{$data.province}</eq>    
      </td>

      <td><eq name="$data.status" value="1">
        <input type="text" name="city"  class="layui-input" required="" value="{$data.city}"><else>{$data.city}</eq>
      </td>

      <td><eq name="$data.status" value="1">

        <input type="text" name="area"  class="layui-input" required="" value="{$data.area}"><else>{$data.area}</eq>

      </td>

      <td><eq name="$data.status" value="1">

        <input type="text" name="address"  class="layui-input" required="" value="{$data.address}"><else>{$data.address}</eq>

      </td>



    </tr>

  </table>



</form>

</div>

</body>



<include file="public/scripts"/>

<script>

  

    var tijiao = function(){



    if($("input[id='company']").val() == ''){

      layer.msg('请选择物流公司');

      return false;

    }

    if($("input[id='codlogistics_codee']").val() == ''){

      layer.msg('请输入物流单号');

      return false;

    }



    var dara = $("#f").serialize();



    $.ajax({

      url:"{:cmf_plugin_url('logistics://logistics_order/ordereditPage')}",

      data:dara,

      type:'post',

      success:function(data){

        if (data.code == 200) {

          layer.msg(data.message,{icon:1,time:1500},function(){

            parent.layer.closeAll();

            parent.location.reload(); 

          });

        } else {

          layer.msg(data.message,{icon:2,time:1500});

        }

      },

      error:function()

      {

        layer.msg('系统错误',{icon:2,time:1500});

      }

    })

    }

</script>

</html>